package com.yunbao.ioc.tx;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * Created by louisyuu on 2020/3/4 下午2:55
 */
public class TransactionJdkAdvisor extends TransactionAdvisor implements InvocationHandler {


    public TransactionJdkAdvisor(TransactionManager transactionManager, Object target) {
        super(transactionManager, target);
    }


    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return invoke(method, args);
    }
}
